﻿using System.ServiceProcess;
using System.Diagnostics;
using System.Windows.Forms;
using System.Threading;
using System;
using ServiceDebuggerHelper;

namespace BneyBaruch.Ingest.WorkflowManagementService
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(params string[] args)
        {
            if (args.Length > 0 && args[0].ToLower().Equals("/debug"))
            {
                Application.Run(new ServiceRunner(new IngestWorkflowManagementService()));
            }
            else
            {
                ServiceBase[] ServicesToRun;
                ServicesToRun = new ServiceBase[] 
		        { 
			        new IngestWorkflowManagementService()
		        };
                ServiceBase.Run(ServicesToRun);
            }
        }
    }
}
